<!DOCTYPE html>
<html lang="zh-cn">
    <head>
        <meta charset="utf-8" />
        <title>Accordion - ESUI Demo</title>
        <meta http-equiv="X-UA-Compatible" content="IE=Edge">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <link rel="stylesheet" href="../dep/esui/3.2.0-beta.2/demo/assets/google-code-prettify/prettify.css"/>
        <link rel="stylesheet" href="assets/themes/standard.css" />
        <!--[if lt IE 9]>
        <link rel="stylesheet" href="../dep/esui/3.2.0-beta.2/demo/assets/ie8.css"/>
        <![endif]-->
    </head>
<body>
    <div class="header">
        <h1 id="branding">ESUI Accordion</h1>
    </div>
    <div class="ui-g main-container">
        <div id="side-bar" class="ui-u-1-5">
            <ul id="navigator" class="ui-nav">
            </ul>
        </div>
        <div id="main" class="ui-u-4-5">
            <h2>Accordion</h2>
            <p>普通Accordion</p>
            <div class="example">
                <h3>Icon on Left Side</h3>
                <div class="row">
                    <esui-accordion data-ui-width="400">
                        <div data-role="panel">
                            <div data-role="header">1.一级条目</div>
                            <div data-role="content">
                                Mauris mauris ante, blandit et, ultrices a, suscipit eget, quam. Integer ut neque. Vivamus nisi metus, molestie vel, gravida in, condimentum sit amet, nunc. Nam a nibh. Donec suscipit eros. Nam mi. Proin viverra leo ut odio. Curabitur malesuada. Vestibulum a velit eu ante scelerisque vulputate.
                            </div>
                        </div>
                        <div data-role="panel">
                            <div data-role="header">2.一级条目</div>
                            <ul data-role="content">
                                Mauris mauris ante, blandit et, ultrices a, suscipit eget, quam. Integer ut neque. Vivamus nisi metus, molestie vel, gravida in, condimentum sit amet, nunc. Nam a nibh. Donec suscipit eros. Nam mi. Proin viverra leo ut odio. Curabitur malesuada. Vestibulum a velit eu ante scelerisque vulputate.
                            </ul>
                        </div>
                    </esui-accordion>
                </div>
                <h3>Icon on Right Side</h3>
                <div class="row">
                    <esui-accordion 
                    data-ui-variants="icon-right"
                    data-ui-header-icon="ui-icon-caret-left">
                        <div data-role="panel">
                            <div data-role="header">1.一级条目</div>
                            <div data-role="content">
                                Mauris mauris ante, blandit et, ultrices a, suscipit eget, quam. Integer ut neque. Vivamus nisi metus, molestie vel, gravida in, condimentum sit amet, nunc. Nam a nibh. Donec suscipit eros. Nam mi. Proin viverra leo ut odio. Curabitur malesuada. Vestibulum a velit eu ante scelerisque vulputate.
                            </div>
                        </div>
                        <div data-role="panel">
                            <div data-role="header">2.一级条目</div>
                            <div data-role="content">
                                Mauris mauris ante, blandit et, ultrices a, suscipit eget, quam. Integer ut neque. Vivamus nisi metus, molestie vel, gravida in, condimentum sit amet, nunc. Nam a nibh. Donec suscipit eros. Nam mi. Proin viverra leo ut odio. Curabitur malesuada. Vestibulum a velit eu ante scelerisque vulputate.
                            </div>
                        </div>
                    </esui-accordion>
                </div>
            </div>

            <h2>全部可折叠</h2>
            <p>全部折叠所有的Panel。</p>
            <div class="example">
                <div data-ui="type:Accordion;collapsible:true;activeIndex:-1;">
                    <div>
                        <div>1.一级条目</div>
                        <div>东风夜放花千树，更吹落，星如雨。宝马雕车香满路。凤箫声动，玉壶光转，一夜鱼龙舞。蛾儿雪柳黄金缕，笑语盈盈暗香去。众里寻他千百度，蓦然回首，那人却在，灯火阑珊处。</div>
                    </div>
                    <div>
                        <div>2.一级条目</div>
                        <div>东风夜放花千树，更吹落，星如雨。宝马雕车香满路。凤箫声动，玉壶光转，一夜鱼龙舞。蛾儿雪柳黄金缕，笑语盈盈暗香去。众里寻他千百度，蓦然回首，那人却在，灯火阑珊处。</div>
                    </div>
                    <div>
                        <div>3.一级条目</div>
                        <div>东风夜放花千树，更吹落，星如雨。宝马雕车香满路。凤箫声动，玉壶光转，一夜鱼龙舞。蛾儿雪柳黄金缕，笑语盈盈暗香去。众里寻他千百度，蓦然回首，那人却在，灯火阑珊处。</div>
                    </div>
                </div>
            </div>

            <h2>Hover</h2>
            <p>Hover Open</p>
            <div class="example">
                <div data-ui="type:Accordion;hoverable:true;">
                    <div>
                        <div>1.一级条目</div>
                        <div>东风夜放花千树，更吹落，星如雨。宝马雕车香满路。凤箫声动，玉壶光转，一夜鱼龙舞。蛾儿雪柳黄金缕，笑语盈盈暗香去。众里寻他千百度，蓦然回首，那人却在，灯火阑珊处。</div>
                    </div>
                    <div>
                        <div>2.一级条目</div>
                        <div>东风夜放花千树，更吹落，星如雨。宝马雕车香满路。凤箫声动，玉壶光转，一夜鱼龙舞。蛾儿雪柳黄金缕，笑语盈盈暗香去。众里寻他千百度，蓦然回首，那人却在，灯火阑珊处。</div>
                    </div>
                    <div>
                        <div>3.一级条目</div>
                        <div>东风夜放花千树，更吹落，星如雨。宝马雕车香满路。凤箫声动，玉壶光转，一夜鱼龙舞。蛾儿雪柳黄金缕，笑语盈盈暗香去。众里寻他千百度，蓦然回首，那人却在，灯火阑珊处。</div>
                    </div>
                </div>
            </div>

            <h2>固定高度</h2>
            <p>Hover Open</p>
            <div class="example">
                <div data-ui="type:Accordion;fixHeight:100;">
                    <div>
                        <div>1.一级条目</div>
                        <div>东风夜放花千树，更吹落，星如雨。宝马雕车香满路。凤箫声动，玉壶光转，一夜鱼龙舞。蛾儿雪柳黄金缕，笑语盈盈暗香去。众里寻他千百度，蓦然回首，那人却在，灯火阑珊处。</div>
                    </div>
                    <div>
                        <div>2.一级条目</div>
                        <div>东风夜放花千树，更吹落，星如雨。宝马雕车香满路。凤箫声动，玉壶光转，一夜鱼龙舞。蛾儿雪柳黄金缕，笑语盈盈暗香去。众里寻他千百度，蓦然回首，那人却在，灯火阑珊处。</div>
                    </div>
                    <div>
                        <div>3.一级条目</div>
                        <div>东风夜放花千树，更吹落，星如雨。宝马雕车香满路。凤箫声动，玉壶光转，一夜鱼龙舞。蛾儿雪柳黄金缕，笑语盈盈暗香去。众里寻他千百度，蓦然回首，那人却在，灯火阑珊处。</div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <script src="../dep/esui/3.2.0-beta.2/demo/assets/loader/esl.js"></script>
    <script src="config.js"></script>
    <script src="../dep/esui/3.2.0-beta.2/demo/demo.js"></script>
    <script src="../dep/esui/3.2.0-beta.2/demo/assets/google-code-prettify/prettify.js"></script>
    <script id="main-js">
    require(
        [
            'esui',
            'ub-ria-ui/Accordion',
            'esui/TextBox',
            'demo',
            'esui/Tab'
        ],
        function (ui, Accordion) {
            ui.init();
        }
    );
    </script>
    <script src="sitemap.js"></script>
</body>
</html>
